package com.example.intentwithobjecttransfer;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Result extends Activity 
{
	private TextView user,pass;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main2);
		
		user = (TextView)findViewById(R.id.user);
		pass = (TextView)findViewById(R.id.pass);
		
		Login login = getIntent().getParcelableExtra("login");
		
	    user.setText((CharSequence)("Username : " + login.getUsername()));
	    pass.setText((CharSequence)("Password : " + login.getPassword()));
	    
	    
	    user.setText((CharSequence)("Username : " + login.getUsername()));
	    pass.setText((CharSequence)("Password : " + login.getPassword()));
	    
	   
	}
}
